  :
$url = 'http://antismart.ru/down/';

$content = file_get_contents($url);



preg_match_all(

'/<strong><a href="([^"]*)">([^<]*)<\/a><\/strong>/',

$content, &$MATCHES, PREG_SET_ORDER);



foreach($MATCHES as $MATCH)

{

echo "<a href='" . $MATCH[1] . "'>" . $MATCH[2]. "</a>";

echo "<br />";

}






















 :
$host = "antismart.ru";

$path = "/down/?$QUERY_STRING";

$fp = fsockopen($host,80,$errno,$errstr,30);

if(!$fp) echo"$errstr ($errno)<br />\n";

else{

$headers = "GET $path HTTP/1.0\r\n";

$headers .= "Host: $host\r\n";

$headers .= "Accept: *\r\n";

$headers .="Accept-Charset: UTF-8\r\n";

$headers .= "Accept-Charset: *\r\n";

$headers .= "Accept-Encoding: deflate\r\n";

$headers .= "Accept-Language: ru\r\n";

$headers .= "User-Agent: Nokia 6600\r\n\r\n";

fwrite($fp,$headers);

while($file != "\r\n") $file = fgets($fp,128);

$file = "";

while(!feof($fp)) $file .= fgets($fp,4096);

fclose($fp);

}

$file = str_replace( "  ", $file);

$file = str_replace("imtop.ru", " ", $file);

$file = str_replace("waplog.net", " ", $file);

$file = str_replace("[]", " ", $file);

$file = str_replace("[]", " ", $file);

$file = str_replace("[]", " ", $file);

echo $file;




